<?php
include_once("isLogin.php")
?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>添加信息</title>
</head>
<body>
<?php
include_once("conn.php");//调用连接数据库模块
$user = $_POST["user"];
$password = $_POST["password"];
$sql = "insert users(username,password) values('".$user."','".$password."')";
mysqli_query($conn,$sql);
echo "<script>alert('添加成功!');window.location.href='list.php';</script>";
?>
<p>您的信息如下</p>
<p>您的用户名：<?=$_POST["user"]?></p>
<p>您的密码：<?=$_POST["password"]?></p>
</body>
</html>